package entity;

import entity.Employee;

import java.io.Serializable;

import javax.persistence.*;
import javax.inject.Named;

/**
 * Entity implementation class for Entity: Salaried
 *
 */
@Named(value="salaried")
@Entity
@DiscriminatorValue("S")
public class Salaried extends Employee implements Serializable {

	
	private static final long serialVersionUID = 1L;
	private float monthly_salary;
	
	public Salaried(String codfisc, String name, String surname,  String username, String password,
			float monthly_salary) {
		super(codfisc, name, surname,  username, password);
		this.monthly_salary = monthly_salary;
	}
	public float getMonthly_salary() {
		return monthly_salary;
	}
	public void setMonthly_salary(float monthly_salary) {
		this.monthly_salary = monthly_salary;
	}
	public Salaried() {
		super();
	}
   
}
